//package com.zmn.plat.dubbo.controller;
//
//import com.zmn.common.dto2.ResponseDTO;
//import com.zmn.plat.business.interfaces.price.AdvanceFlowBService;
//import com.zmn.plat.business.interfaces.price.BkProductPriceBService;
//import com.zmn.plat.business.interfaces.price.MeterFlowBService;
//import com.zmn.plat.business.interfaces.product.ServProductBService;
//import com.zmn.plat.common.dto.brand.BaseBrandDRO;
//import com.zmn.plat.common.dto.price.ItemTo;
//import com.zmn.plat.common.dto.price.ProductPriceDRO;
//import com.zmn.plat.common.dto.price.ProductPriceQuery;
//import com.zmn.plat.common.dto.price.meter.*;
//import com.zmn.plat.common.dto.product.tariff.TariffBackProductDRO;
//import com.zmn.plat.common.dto.product.tariff.TariffProductDRO;
//import com.zmn.plat.common.dto.product.tariff.category.TariffCategoryDRO;
//import com.zmn.plat.common.dto.product.tariff.category.TariffCategoryPageDRO;
//import com.zmn.plat.common.dto.product.tariff.servcategory.TariffServCategoryDRO;
//import com.zmn.plat.common.dto.servcategory.ServCategoryChildrenDRO;
//import com.zmn.plat.dubbo.interfaces.price.MeterFlowRemoteService;
//import com.zmn.plat.dubbo.utils.DubboConsts;
//import com.zmn.plat.model.entity.product.ServProduct;
//import com.zmn.plat.model.entity.product.ServProductQuery;
//import com.zmn.plat.services.interfaces.product.ServProductService;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.dubbo.config.annotation.Reference;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import javax.annotation.Resource;
//import java.util.List;
//import java.util.stream.Collectors;
//
//@Slf4j
//@RestController
//@RequestMapping("/test/bkProductPrice/")
//public class BkProductPriceController {
//
//    @Resource
//    BkProductPriceBService bkProductPriceBService;
//    @Resource
//    ServProductService servProductService;
//
//    @RequestMapping(value = "test1", method = RequestMethod.POST)
//    public ResponseDTO test1(@RequestBody ProductPriceQuery query) {
////        ServProductQuery query1 = new ServProductQuery();
////        query1.setShowType(query.getShowType());
////        List<Integer> idList = servProductService.listByQuery(query1).stream().map(e -> e.getProductId()).collect(Collectors.toList());
////        query.setProductIdList(idList);
//
//        long start = System.currentTimeMillis();
//        List<ProductPriceDRO> dro = bkProductPriceBService.listProductPriceByQuery(query);
//        long end = System.currentTimeMillis();
//        return ResponseDTO.success(dro, "耗时：" + (end - start));
//    }
//
//}
